package com.sjzsqjy.asdtiang.mysql;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * Qq entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "qq", catalog = "hospital")
public class Qq implements java.io.Serializable {

	// Fields

	private String id;
	private Long version;
	private String sequence;
	private String code;
	private String info;

	// Constructors

	/** default constructor */
	public Qq() {
	}

	/** full constructor */
	public Qq(Long version, String sequence, String code, String info) {
		this.version = version;
		this.sequence = sequence;
		this.code = code;
		this.info = info;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "version", nullable = false)
	public Long getVersion() {
		return this.version;
	}

	public void setVersion(Long version) {
		this.version = version;
	}

	@Column(name = "sequence", nullable = false)
	public String getSequence() {
		return this.sequence;
	}

	public void setSequence(String sequence) {
		this.sequence = sequence;
	}

	@Column(name = "code", nullable = false, length = 65535)
	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column(name = "info", nullable = false)
	public String getInfo() {
		return this.info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

}